package day05.JavaCodePractice;
import java.util.Arrays;
import java.util.Random;
public class ArraySortPractice {
    public static void main(String[] args) {
        Random rand1 = new Random();
        int[] arr1 = new int[10];
        for (int i = 0; i < arr1.length; i++) {
            arr1[i] = rand1.nextInt(1000);
            System.out.println(arr1[i]);
        }

        Arrays.sort(arr1);

        System.out.println("正序排序:");
        for (int i = 0; i < arr1.length; i++) {
            System.out.println(arr1[i]);
        }

        System.out.println("倒叙排序");
        for (int i = arr1.length - 1 ; i >= 0;  i--) {

        }
    }
}
